import { createApp } from 'vue';
import App from './App.vue';
import './assets/global.less';
import components from './components/global';
import store from './store'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'dayjs/locale/zh-cn'
import elementIcons from '@/components/SvgIcon/index'
import { Icon } from '@iconify/vue';
// 注册指令
import plugins from './plugins' // plugins



const app = createApp(App)
app.config.productionTip = false

// components
for (const i in components) {
  app.component(i, components[i])
}
app.use(elementIcons)
app.component("Icon",Icon)
app.use(store)
app.use(router)
app.use(plugins)
app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')
